home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 104 / MacAddict_104_2005-04.iso / Software / Internet & Communication / WordPress 1.2.2 freeware.dmg / wordpress / index.php next >
Encoding:
PHP Script  |  2004-04-28  |  4.3 KB  |  115 lines

  1. <?php 
  2. /* Don't remove this line. */
  3. require('./wp-blog-header.php');
  4. ?>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7.  
  8. <head profile="http://gmpg.org/xfn/1">
  9.     <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
  10.     
  11.     <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
  12.     <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
  13.  
  14.     <style type="text/css" media="screen">
  15.         @import url( <?php echo get_settings('siteurl'); ?>/wp-layout.css );
  16.     </style>
  17.     
  18.     <link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>/print.css" />
  19.     <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
  20.     <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
  21.     <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
  22.     
  23.     <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  24.     <?php wp_get_archives('type=monthly&format=link'); ?>
  25.     <?php //comments_popup_script(); // off by default ?>
  26.     <?php wp_head(); ?>
  27. </head>
  28.  
  29. <body>
  30. <div id="rap">
  31. <h1 id="header"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
  32.  
  33. <div id="content">
  34. <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
  35.  
  36. <?php the_date('','<h2>','</h2>'); ?>
  37.     
  38. <div class="post">
  39.      <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  40.     <div class="meta"><?php _e("Filed under:"); ?> <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
  41.     
  42.     <div class="storycontent">
  43.         <?php the_content(); ?>
  44.     </div>
  45.     
  46.     <div class="feedback">
  47.             <?php wp_link_pages(); ?>
  48.             <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
  49.     </div>
  50.     
  51.     <!--
  52.     <?php trackback_rdf(); ?>
  53.     -->
  54.  
  55. <?php include(ABSPATH . 'wp-comments.php'); ?>
  56. </div>
  57.  
  58. <?php endforeach; else: ?>
  59. <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  60. <?php endif; ?>
  61. </div>
  62.  
  63.  
  64.  
  65. <div id="menu">
  66.  
  67. <ul>
  68.     <?php get_links_list(); ?>
  69.  <li id="categories"><?php _e('Categories:'); ?>
  70.     <ul>
  71.     <?php wp_list_cats(); ?>
  72.     </ul>
  73.  </li>
  74.  <li id="search">
  75.    <label for="s"><?php _e('Search:'); ?></label>    
  76.    <form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
  77.     <div>
  78.         <input type="text" name="s" id="s" size="15" /><br />
  79.         <input type="submit" name="submit" value="<?php _e('Search'); ?>" />
  80.     </div>
  81.     </form>
  82.  </li>
  83.  <li id="archives"><?php _e('Archives:'); ?>
  84.      <ul>
  85.      <?php wp_get_archives('type=monthly'); ?>
  86.      </ul>
  87.  </li>
  88.  <li id="calendar">
  89.     <?php get_calendar(); ?>
  90.  </li>
  91.  <li id="other"><?php _e('Other:'); ?>
  92.     <ul>
  93.         <li><a href="<?php echo get_settings('siteurl'); ?>/wp-login.php"><?php _e('Login'); ?></a></li>
  94.         <li><a href="<?php echo get_settings('siteurl'); ?>/wp-register.php"><?php _e('Register'); ?></a></li>
  95.     </ul>
  96.  </li>
  97.  <li id="meta"><?php _e('Meta:'); ?>
  98.      <ul>
  99.         <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> 2.0'); ?></a></li>
  100.         <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr> 2.0'); ?></a></li>
  101.         <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
  102.         <li><a href="http://wordpress.org/" title="<?php _e('Powered by WordPress; state-of-the-art semantic personal publishing platform.'); ?>">WP</a></li>
  103.     </ul>
  104.  </li>
  105.  
  106. </ul>
  107.  
  108. </div>
  109.  
  110. </div>
  111.  
  112. <p class="credit"><!--<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php echo sprintf(__("Powered by <a href='http://wordpress.org' title='%s'><strong>WordPress</strong></a>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform")); ?></cite></p>
  113. </body>
  114. </html>
  115.